<div class="properties-grid">
    <div class="row">
        <?php foreach ($listings as $row) { ?>
            <div class="property span3">
                <form method="post" action="<?php echo base_url(); ?>cart/add_cart_item">
                    <div class="image">
                        <div class="content">
                            <a href="<?php echo base_url(); ?>detail.html?id=<?php echo $row['Listing_ID']; ?>"></a>
                            <img src="<?php echo base_url(); ?>assets/img/tmp/property-small-1.png" alt="">
                        </div><!-- /.content -->

                        <div class="price"><?php echo $row['AskingPriceLocal']; ?></div><!-- /.price -->
                        <div class="reduced">Reduced </div><!-- /.reduced -->
                    </div><!-- /.image -->

                    <div class="title">
                        <h2><a href="detail.html"><?php echo $row['ProjectName_1']; ?></a></h2>
                    </div><!-- /.title -->

                    <div class="location">Palo Alto CA</div><!-- /.location -->
                    <div class="area">
                        <span class="key">Area:</span><!-- /.key -->
                        <span class="value">120</span><!-- /.value -->
                    </div><!-- /.area -->
                    <div class="bedrooms"><div class="content">4</div></div><!-- /.bedrooms -->
                    <div class="bathrooms"><div class="content">3</div></div><!-- /.bathrooms -->
                    <div class="clearfix"></div>
                    <div class="addToCart">
                        <input type="hidden" id="id" name="id" value="<?php echo $row['Listing_ID']; ?>">
                        <span class="key">Quantity:</span><!-- /.key -->
                        <span class="value">
                            <input type="text" id="inputQuantity" name="quantity" size="1" style="width: 30px;">
                            <input type="submit" value="AddToCart" class="btn btn-primary arrow-right AddToCart">
                        </span><!-- /.value -->
                    </div>
                </form>
            </div><!-- /.property -->
        <?php } ?>
    </div><!-- /.row -->
</div><!-- /.properties-grid -->
